﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SWDataDB.Models;
using SWDataDB.BLL;
using SWDataDB.DAL;
using System.Data;



public partial class AdminManage_Edit_AddUTIL : System.Web.UI.Page
{
     
    protected void Page_Load(object sender, EventArgs e)
    { 
    }


     


    protected void submit_Click(object sender, EventArgs e)
    {
        UTIL_TBL xg_info = new UTIL_TBL();
        UTILInfo kc_in = new UTILInfo();

        xg_info.O_ZL_FILE_ID = Request.Form["ZL_FILE_ID"]; 
        xg_info.O_SW_TYPE = Request.Form["SW_TYPE"];
        xg_info.O_SW_NUM =Convert.ToInt16( Request.Form["SW_NUM"]);
        xg_info.O_COL_NAME = Request.Form["COL_NAME"];

        xg_info.O_COL_DATE = Request.Form["COL_DATE"];
         

        if (kc_in.AppendUTILInfo(xg_info) == 1)
        {
            
            Response.Write("<script language=javascript>alert('添加成功！');location='../Manage/UTILManage.aspx'</script>");
            //Response.Redirect("ZLManage.aspx");
        }
        else
        {
            Response.Write("<script language=javascript>alert('添加失败！');location='../Manage/UTILManage.aspx'</script>");
        }
    }
}